import request from '@/utils/request'
// 账号密码登陆接口
export function login(data) {
  return request({
    url: '/login/doLogin',
    method: 'post',
    data
  })
}
// 获取用户详情
export function getUserInfo(token) {
  return request({
    url: '/login/info',
    method: 'get',
    params: { token }
  })
}
//   获取路由表接口
export function getMoveRouter(params) {
    return request({
      url: '/main/treeList',
      method: 'get',
      params
    })
  }
